// 供应商管理
import { admin } from '../servicePath'
export default ({ service, request, serviceForMock, requestForMock, mock, faker, tools }) => ({
  admin_supplier_add (data) {
    return request({
      url: `${admin}/admin/supplier/add`,
      method: 'POST',
      data
    })
  },
  admin_supplier_delete (data) {
    return request({
      url: `${admin}/admin/supplier/delete`,
      method: 'POST',
      data
    })
  },
  admin_supplier_get (params) {
    return request({
      url: `${admin}/admin/supplier/get`,
      method: 'POST',
      params
    })
  },
  admin_supplier_getList (params) {
    return request({
      url: `${admin}/admin/supplier/getList`,
      method: 'POST',
      params
    })
  },
  admin_supplier_getPageList (params) {
    return request({
      url: `${admin}/admin/supplier/getPageList`,
      method: 'POST',
      params
    })
  },
  admin_supplier_update (data) {
    return request({
      url: `${admin}/admin/supplier/update`,
      method: 'POST',
      data
    })
  }
})
